package com.bjsxt;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 备忘录类
 *
 * @author Administrator
 */
@Data
@NoArgsConstructor
public class EmpMemento {

    /**
     * 员工姓名
     */
    private String eName;

    /**
     * 员工年龄
     */
    private int age;

    /**
     * 员工工资
     */
    private double salary;

    public EmpMemento(Emp e) {
        this.eName = e.getEName();
        this.age = e.getAge();
        this.salary = e.getSalary();
    }

}
